]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Only call gjs_dumpstack() on warnings from main thread
authorSebastian Keller <skeller@gnome.org>
Wed, 21 Jan 2026 21:54:39 +0000 (22:54 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 4 Feb 2026 14:25:39 +0000 (14:25 +0000)
commit23e3e7970f1ef316c0a5bce2dea4872cf1ca5750
tree5d6f9b6c8f4e92b08e404331ae1a9add86985b9e
parent2f34dd43593d4f991c72001a00e647be94ca8519
main: Only call gjs_dumpstack() on warnings from main thread

The mozjs code called by gjs_dumpstack() does not appear to be thread
safe and was sometimes resulting in crashes when triggered by error
messages from threads other than the main thread. And even when not
crashing, such a backtrace can only be misleading since only the main
thread is executing JS code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4046>
src/main.c